package cn.silver.module.authority.service;

import cn.silver.framework.mybatis.service.IDataService;
import cn.silver.module.authority.domain.SysTenant;
import cn.silver.module.authority.bean.TenantBean;
import cn.silver.module.authority.param.TenantParam;

/**
 * 租户Service接口
 *
 * @author Silver Zhou
 */
public interface ISysTenantService extends IDataService<SysTenant, TenantParam, TenantBean> {



    void init();

    /**
     * 基于租户ID查询租户
     */
    TenantBean queryByTenantId(String tenantId);

    /**
     * 同步租户套餐
     */
    Boolean syncTenantPackage(String tenantId, String packageId);
}
